<form action='/login/index' method=post>
<%=logo_display(@company) if @company%>
<div id="login">
 <%=session[:msg].t if session[:msg]%>
<table width=400 align=center>
<tr> <td colspan=2>
   <%if @company%>
     <b><%=@company.name%></b>
   <%else%>
     URL:<br/>http://<%=text_field_tag "url","",:class=>"big_font"%>.trikr.com
   <%end%>
</td> </tr>
<tr>
  <td>
  <%='Username'.t%> <%="or".t%> <%='Email Address'.t%>:</br>
  <%= text_field "user","username",:class=>"big_font" %></td>
</tr>
<tr>
  <td>
  <%='Password'.t%>:</br>
  <%= password_field "user","password",:size=>20%>
  <span class=intro_txt>(<%=link_to'Forget password?'.t,'/login/forget_password',:onclick=>"",:class=>'admin'%>)</span>
  </td>
</tr>
<tr>
  <td><%=check_box_tag "remember",true,false%><span class=intro_txt><%="Remember me on this computer".t%></span></td>
</tr>
<tr>
  <td>
   <input type=submit value=<%="Login".t%> id=submit_login style="width:150px;height:30px;font-weight:bold;" onclick="this.form.submit();$('submit_login').disabled = true;Element.show('loading');"> 
     <span id=loading class=intro_txt style="display:none"><%="Loading".t%><%=image_tag"indicator.gif"%></span>
  </td>
</tr>
</table>
</div>
</form>
